﻿<%@ Page Title="" Language="C#" MasterPageFile="~/combook.Master" AutoEventWireup="true" CodeBehind="reg.aspx.cs" Inherits="computerbookwebsite.reg" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .title_bar{
            width:1000px;
            height:auto;
            margin:0 auto;
            text-align:center;
        }
        .title_content{
            border-bottom: thin solid #C0C0C0;
            width:1000px;
            font-family:宋体;
            font-weight:bold;
            font-size:42px;
            color:#003366;
            text-align:center;
            letter-spacing:3pt;
        }
        
        
        .reg_content{
            width:1000px;
            margin-top:5px;
            padding-left:30px;
            float:left;
        }
        .form_row{
            padding:10px 0px 10px 0px;
            width:1000px;
            clear:both;
        }
        .row_input{
            border:1px solid #DFDFDF;
            width:180px;
            height:18px;
            float:left;
        }
        .btn{
            height:27px;
            width:70px;
            color:#497825;
            font-weight:bold;
            border:1px solid #CCCFD3;
            background-color:#FFFFFF;
            margin-left:100px;
        }
        .error{
            width:120px;
            float:left;
            font-size:12px;
            text-align:left;

        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="title_bar">
        <div class="title_content">
            <span>注册</span>
        </div>
        <div  class="reg_content">
            <div class="form_row">
                <asp:TextBox ID="txtUserName" runat="server"  placeholder="请输入用户名" Width="288px"  Height="35px" ></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserName" ErrorMessage="用户名不能为空" ForeColor="Red">请输入用户名！</asp:RequiredFieldValidator>
            </div>
            <div class="form_row">
                <asp:TextBox ID="txtPassword" runat="server" placeholder="请设置登录密码：" TextMode="Password" Width="288px"  Height="35px" ></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword" ErrorMessage="密码不能为空" ForeColor="Red">请输入密码！</asp:RequiredFieldValidator>
            </div>
            <div class="form_row">
                <asp:TextBox ID="txtRePwd" runat="server" placeholder="请再次输入登录密码:" TextMode="Password" Width="288px"  Height="35px" ></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword" ControlToValidate="txtRePwd" ErrorMessage="两次密码不同" ForeColor="Red">密码不一致！</asp:CompareValidator>
            </div>
            <div class="form_row">
                <asp:TextBox ID="txtCheckcode" runat="server" placeholder="请输入验证码:" Width="120px"   Height="35px"></asp:TextBox>
            </div>
            <div class="form_row">
                <asp:Button ID="btnReg" runat="server" Text="注册" Width="288px"  Height="35px" OnClick="btnReg_Click" />
            </div>
           

        </div>
    </div>
</asp:Content>
